/**
 *  分组页面事件列表
 * @author xiaoxujs
 */

import { ISyhtDictTelecontrolItemAddTelecontrolItemParams, ISyhtDictTelecontrolItemGetTelecontrolItemPageParams, ISyhtDictTelecontrolItemUpdateTelecontrolItemParams } from "../../../type/ConfigManagement/DicManaged/DicManagedYaokongList";
import { basicIp, newHttpService } from "../../http";

// 获取分组页面遥控列表
export  const postSyhtDictTelecontrolItemGetTelecontrolItemPage = (data: ISyhtDictTelecontrolItemGetTelecontrolItemPageParams) => {
    const url = basicIp + '/syht/dictTelecontrolItem/getTelecontrolItemPage';
    return newHttpService.postData(url, data)
}
// 删除分组页面遥控列表
export const getSyhtDictTelecontrolItemDeleteTelecontrolItem = (data:  {TelecontrolItemId: string} ) => {
    const url = basicIp + '/syht/dictTelecontrolItem/deleteTelecontrolItem';
    return newHttpService.getData(url, data)
}
// 添加事件
export const postSyhtDictTelecontrolItemAddTelecontrolItem = (data: ISyhtDictTelecontrolItemAddTelecontrolItemParams) => {
    const url = basicIp + '/syht/dictTelecontrolItem/addTelecontrolItem';
    return newHttpService.postData(url, data)
}
// 根据ID获取事件详情
export const getSyhtDictTelecontrolItemGetDictTelecontrolItemById = (data:  {TelecontrolItemId: string} ) => {
    const url = basicIp + '/syht/dictTelecontrolItem/getDictTelecontrolItemById';
    return newHttpService.getData(url, data)
}
// 编辑事件
export const postSyhtDictTelecontrolItemUpdateTelecontrolItem = (data: ISyhtDictTelecontrolItemUpdateTelecontrolItemParams) => {
    const url = basicIp + '/syht/dictTelecontrolItem/updateTelecontrolItem';
    return newHttpService.postData(url, data)
}









